/*
//简易的计算器 计算两数之间的加减乘除

public class Calculator {
    //定义两个类
    double a;
    double b;
    //构造方法构造
    public Calculator(double a,double b){
        this.a = a;
        this.b = b;
    }
    //定义一个加法类
    public void add(){
        System.out.println(this.a+" + "+this.b+"的结果"+(this.a+this.b));
    }
    //定义一个减法类
    public void sub(){
        System.out.println(this.a+" - "+this.b+"的结果"+(this.a-this.b));
    }
    //定义一个乘法类
    public void mul(){
        System.out.println(this.a+" * "+this.b+"的结果"+(this.a*this.b));
    }
    //定义一个除法类
    public void div(){
        System.out.println(this.a+" / "+this.b+"的结果"+(this.a/this.b));
    }

    public static void main(String[] args){
        Calculator cal = new Calculator(12,6);
        //加
        cal.add();
        //减
        cal.sub();
        //乘
        cal.mul();
        //除
        cal.div();
    }
}
 */
